package com.example.flashsales.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZhekouDto {

    private long id;
    private long orderId;
    private long userId;
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8") //在时间属性上面加上该注解
    private Date createTime;
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8") //在时间属性上面加上该注解
    private Date endTime;
    private double money;
    private double zhekou;
    private long state;//状态 0未使用 1已使用 2已过期 3未发布

    private int count;

    private String name;


}
